package com.ycz.springcloud.controller;/*
 @author ycz
 @date 2021-08-20-13:48  
*/

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {

    @RequestMapping({"/","/index"})
    public String toIndex(){
        return "index";
    }

    @RequestMapping("/page/main.do")
    public String toMain(){
        return "main";
    }

    @RequestMapping("/user/list.do")
    public String toUserList(){
        return "view/user/list";
    }
}
